home *** CD-ROM | disk | FTP | other *** search
/ Aminet 7 / Aminet 7 - August 1995.iso / Aminet / docs / misc / ConcNews.lha / news / amiga.programming / comp.sys.amiga.programmer_20113_000008.msg < prev    next >
Encoding:
Internet Message Format  |  1994-11-27  |  1.8 KB

  1. Path: etek.chalmers.se!chalmers.se!sunic!mcsun!uunet!gatech!concert!sas!mozart.unx.sas.com!walker
  2. From: walker@twix.unx.sas.com (Doug Walker)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: How do you get a SINGLE character read?
  5. Message-ID: <BvG2uC.GAE@unx.sas.com>
  6. Date: 1 Oct 92 13:30:12 GMT
  7. References: <1992Sep28.164347.13534@scic.intel.com> <jow.01xk@hcast.adsp.sub.org>
  8. Sender: news@unx.sas.com (Noter of Newsworthy Events)
  9. Organization: SAS Institute Inc.
  10. Lines: 24
  11. Originator: walker@twix.unx.sas.com
  12. Nntp-Posting-Host: twix.unx.sas.com
  13.  
  14.  
  15. In article <jow.01xk@hcast.adsp.sub.org>, jow@hcast.adsp.sub.org (Juergen Weinelt) writes:
  16. |> In article <1992Sep28.164347.13534@scic.intel.com> gatlin@scic.intel.com (Robert Gatlin) writes:
  17. |> >I am writting a program in C (Lattice) and need to read a single
  18. |> >character from the keyboard without having to wait for the user
  19. |> >to hit <CR>. I have tried to use the ansii getc() function, but
  20. |> >obviously waits for a <CR>. The I*M version of Turbo C has a
  21. |> >non-ansii standard function getch() which does what I want. Is
  22. |> >a similar function or workaround available for Amiga C?
  23.  
  24. Check out RawIO on Fred Fish disk #85 (Yes, 85).  It contains
  25. source to a function to change the console window to raw mode
  26. based on a Lattice C filehandle.  This still works with Lattice
  27. and SAS/C version 5.x.  Under 6.0, functions are provided in the
  28. library to do this.
  29.  
  30. -- 
  31.   *****
  32. =*|_o_o|\\=====Doug Walker, Software Distiller====== BBS: (919)460-7430 =
  33.  *|. o.| ||                                          1200/2400/9600 Dual
  34.   | o  |//     For all you do, this bug's for you!
  35.   ====== 
  36. usenet: walker@unx.sas.com                            bix: djwalker 
  37. Any opinions expressed are mine, not those of SAS Institute, Inc.
  38.